<%@ page import="com.scalar.chiptrack.utils.ConfigManager, java.util.Calendar"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/chiptrack-tags.tld" prefix="chiptrack" %>

<%String chipTracContext = "/" + ConfigManager.getChipTracContext(); %>

<HTML><HEAD><TITLE>Scalarsoft - ChipTrac</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<LINK href="<%=chipTracContext%>/jsp/includes/stylesheets/scalarsoft.css" type="text/css" rel=stylesheet>
<SCRIPT language="JavaScript" src="<%=chipTracContext%>/jsp/includes/scripts/functions.js"></SCRIPT>
<SCRIPT language="JavaScript" src="<%=chipTracContext%>/jsp/includes/scripts/validations.js"></SCRIPT>

<SCRIPT language="JavaScript">

var dateElement = "";
function openCalendar(dateValue)
{
    dateElement = dateValue;
    newWindow = window.open('<%=chipTracContext%>/jsp/includes/calendar.html','optionsPopup','channelmode=no,directories=no,toolbar=no,menubar=no,personalbar=no,status=no,scrollbars=no,width=180,height=440,resizable=no');
    newWindow.moveTo(550,180);
    newWindow.focus();
}
function assignDate(passedValue)
{
    dateElement.value=passedValue;
    window.focus();
}

function selectBaseProduct()
{
	document.yieldSummaryForm.submit();
}

function getProductsForProcess()
{
	document.yieldSummaryForm.submit();
}

function loadBaseProductDetails( baseProductId )
{
    document.wipFlushSearchForm.action="<%=chipTracContext%>/wipFlushSetupAction.do?action=loadProductFamilyDetails&baseProductId=" + baseProductId;
    document.wipFlushSearchForm.submit();
    return true;
}

</script>
</HEAD>
<BODY bgColor="#ffffff" leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">

<!-- Top Header Start-->
<%@ include file="/jsp/includes/header.jsp" %>
<!-- Top Header End-->

<TABLE cellSpacing=0 cellPadding=0 width="100%" border="0">
    <TR>
        <td width='180' valign='top' background='<%=chipTracContext%>/jsp/includes/images/left_red_bg.gif'>
            <!-- Side Navigation start -->
            <%@ include file="/jsp/operations/product_menu.jsp" %>
            <!-- end of the side navigations -->
        </td>
        <TD bgcolor="#ffffff"><IMG height=9 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=8></TD>
        <TD bgcolor="#ffffff"><IMG height=480 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=2></TD>
        <TD bgcolor="#ffffff"></TD>
        <form name="wipFlushSearchForm">
        <TD valign="top" width="100%">
            <table border="0" width="100%" align="center">
                <tr><td width="100%"><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10></td></tr>
                <tr><td width="100%"><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10></td></tr>
                <tr>
                    <TD width="100%" align="center" class="NArialW">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Wip Flush Screen</TD>
                </tr>
                <tr><td class="NArialL"><chiptrack:errors styleClass="NArialL"  /></td></tr>
                <tr><td class="NArialL"><chiptrack:info styleClass="NArialL"  /></td></tr>
                <%--<tr><td width="100%"><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10></td></tr>--%>
                <tr>
                    <td width="100%" align="left" class='NArialL'>
                        <b><FONT id="errors" styleClass="NArialL" color="#FF0000"></FONT></b>&nbsp;
                    </td>
                </tr>
                <tr>
                    <td width="100%" class="NArialL">
                        <table border="0" width="30%" align="center">
                            <tr>
                                <td  width="100%" align="center" bgcolor="#993333"><font class="NArialL"><font color="#FFFFFF">Base Product Name</font></td>
                            </tr>
                            <logic:iterate id="baseProductList" name="BaseProductList" indexId="iteratorIdx">
                                <tr <%if(iteratorIdx.intValue()%2==0){%> bgcolor='#DEE1E2' <% } else {%> bgcolor='#FFFFEE' <%}%> >
                                    <td align="center" width="100%" class="NArialL">
                                        <%--<a href="javascript:loadBaseProductDetails('<bean:write name="baseProductList" property="value"/>')"><bean:write name="baseProductList" property="label"/></a>--%>
                                        <a href="<%=chipTracContext%>/wipFlushSetupAction.do?action=loadProductFamilyDetails&baseProductId=<bean:write name="baseProductList" property="value"/>"><bean:write name="baseProductList" property="label"/></a>
                                    </td>
                                </tr>
                            </logic:iterate>
                        </table>
                    </td>
                </tr>
                <tr><td width="100%"><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=20>&nbsp;</td></tr>
            </table>
            </form>
        </TD>
        <TD bgcolor="#ffffff"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
    </TR>
</TABLE>
<!-- Footer starts here -->
<%@ include file="/jsp/includes/footer.jsp" %>
<!-- footer end here -->
</BODY>
</HTML>
